﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Text;
using CYZHAPI.Entity;

namespace CYZHAPI.Common.DB
{
    public interface IRepository<T> where T :class
    {
        //T Get(object id, IDbTransaction transaction = null, int? commandTimeout = null);

        DataSet GetList(string tableName, string sWhere);
        bool insert(string TableName, DataSet itemModel);
        bool update(string keyColumn, string tableName, DataSet itemModel);
        bool delete(long key, string keyColumn, string tableName);

        //PagedList<T> GetPagedList(int pageNumber, int rowsPerPage, string conditions, string orderby, out int totals, object parameters = null, IDbTransaction transaction = null, int? commandTimeout = null);
    }
}